{extend name="common/store_joinin_layout" /}
{block name="content"}

<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/base.css">
<div class="banner">
  <div class="user-box">
    <?php if(session('is_login') == '1'){?>
    <div class="user-joinin">
      <h3>亲爱的：<?php echo session('member_name');?></h3>
      <dl>
        <dt>欢迎来到{:sysconf('site_name')}</dt>
        <dd> 若您还没有填写入驻申请资料<br/>
          请点击“<a href="<?php echo url('/shop/Storejoinin/step0');?>" target="_blank">我要入驻</a>”进行入驻资料填写</dd>
        <dd>若您的店铺还未开通<br/>
          请通过“<a href="<?php echo url('/shop/Storejoinin/index');?>" target="_blank">查看入驻进度</a>”了解店铺开通的最新状况 </dd>
      </dl>
      <div class="bottom"><a href="<?php echo url('/shop/Storejoinin/step0');?>" target="_blank">我要入驻</a><a href="<?php echo url('/shop/Storejoinin/index');?>" target="_blank">查看入驻进度</a></div>
    </div>
     <?php }else { ?>
    <div class="user-login">
      <h3>商务登录<em>（使用已注册的会员账号）</em></h3>
        <form id="login_form" action="" class="layui-form" method="post">
     
        <input type="hidden" name="form_submit" value="ok" />

        <dl>
          <dt>用户名：</dt>
          <dd>
            <input type="text" class="text" autocomplete="off"  name="username" lay-verify="username" id="user_name">
            <label></label>
          </dd>
        </dl>
        <dl>
          <dt>密&nbsp;&nbsp;&nbsp;码：</dt>
          <dd>
            <input type="password" class="text" name="password" autocomplete="off" lay-verify="password" id="password">
            <label></label>
          </dd>
        </dl>
        <?php if(sysconf('captcha_status_login') == '1') { ?>
        <dl>
          <dt>验证码：</dt>
          <dd>
            <input type="text" name="captcha" class="text w50 fl" id="captcha" lay-verify="captcha" maxlength="4" size="10" />
            <a href="JavaScript:void(0);" onclick="javascript:document.getElementById('codeimage').src='{:url('/member/Login/verify_code')}'" class="change" title="看不清，换一张">
            <img src="{:url('/member/Login/verify_code')}" class="fl ml5" name="codeimage" id="codeimage" border="0"/></a>
            <label></label>
          </dd>
        </dl>
        <?php } ?>
        <dl>
          <dt></dt>
          <dd>
            <input type="hidden" value="{:get_root_url()}/shop/Showjoinin/joinin" name="ref_url">
            <input name="提交" type="submit" class="button" lay-submit="" lay-filter="ajax_default_login" value="登&nbsp;&nbsp;录">
            <!--<a href="/member/Login/forget_password?ref_url=/shop/Showjoinin/joinin" target="_blank">忘记密码？</a>-->
          </dd>
        </dl>
      </form>
      <div class="register">还没有成为我们的合作伙伴？ <a href="/member/Login/register?ref_url=/shop/Showjoinin/joinin" target="_blank">快速注册</a></div>
    </div>
    <?php } ?>
  </div>
    <ul id="fullScreenSlides" class="full-screen-slides">
        <?php $pic_n = 0;?>
        <?php if(!empty($pic_list) && is_array($pic_list)){ ?>
        <?php foreach($pic_list as $key => $val){ ?>
        <?php if(!empty($val)){ $pic_n++; ?>
        <li style="background-color: #F1A595; background-image: url(<?php echo UPLOAD_SITE_URL.'/'.ATTACH_COMMON.'/'.$val;?>)" ></li>
        <?php } ?>
        <?php } ?>
        <?php } ?>
    </ul>
</div>

<div class="indextip">
  <div class="container"> <span class="title"><i></i>
    <h3>贴心提示</h3>
    </span> <span class="content"><?php if(!empty($show_txt)) {
      echo $show_txt;
    }else{
    echo "康乐茶叶城（www.kanglecha.com)是云南中闽南科技有限公司旗下的一个网站,公司每年为上千万的普洱茶爱好者和茶爱好者提供资讯和咨询服务，同时也为国内一流的普洱茶企业提供分销和咨询服务，已经联合了几十家茶叶龙头品牌，茶商，茶厂，结合公司的资金，现金的管理经验，运用最先进的全网营销方式，致力与打造全球最专业的普洱茶等销售和推广平台。";
  }

      ?></span></div>
</div>
<div class="mains">
<div class="joinin-index-step">
    <span class="step">
      <a href="javascript:;"><i class="a"></i>
        入驻流程</a>
    </span>
    <span class="step">
      <a href="javascript:;"><i class="b"></i>
      入驻标准</a>
    </span>
    <span class="step">
      <a href="javascript:;"><i class="c"></i>
      公司资质要求</a>
    </span>
    <span class="step">
      <a href="javascript:;"><i class="d"></i>
      品牌资质要求</a>
    </span>
    <span class="step">
      <a href="javascript:;"><i class="e"></i>
      合作细则</a>
    </span>
    <!-- <span class="step">
      <a href="javascript:;"><i class="f"></i>
      已合作品牌</a>
    </span> -->
  </div></div>
  <div class="flow_line"><span></span></div>
  <div class="platform_advantage">
  <div class="platform_logo">
    <img src="<?php echo SHOP_TEMPLATES_URL;?>/images/platform_logo.png" alt="">
  </div>
  <ul class="advantage-list">
    <li class="list-item item-leader shake shake-slow">
      <p class="item-number"><span>01</span></p>
      <p class="item-logo"><i class="logo_1"></i></p>
      <div class="item-text">
          <p class="title">专业团队</p>
          <p class="t-eng">INDUSTRY LEADING</p>
          <p class="line"></p>
          <p class="text-1">专业的运营团队</p>
          <p class="text-2">产品美工、活动策划、客服售后</p>
          <p class="text-3">托付给我们，让您全程无忧，省心省事</p>
      
      </div>
    </li>
    <li class="list-item item-user shake shake-slow">
      <p class="item-number"><span>02</span></p>
      <p class="item-logo"><i class="logo_3"></i></p>
      <div class="item-text">
          <p class="title">模式新颖</p>
          <p class="t-eng">LARGE USER BASE</p>
          <p class="line"></p>
          <p class="text-1">依托于强大的实体茶城资源</p>
          <p class="text-2">平台拥有网上商场、门户信息、茶友圈等功能模块</p>
          <p class="text-3">商户销售与顾客互动相结合，</p>
          <p class="text-4">顾客商户零距离，开创C2C新模式</p>
      </div>
    </li>
    <li class="list-item item-team shake shake-slow">
      <p class="item-number"><span>03</span></p>
      <p class="item-logo"><i class="logo_4"></i></p>
      <div class="item-text">
          <p class="title">品牌保障</p>
          <p class="t-eng">PROFESSIONAL TEAM</p>
          <p class="line"></p>
          <p class="text-1">入驻商家经过严格筛选</p>
          <p class="text-2">平台市场规范，货真价实，顾客信服</p>
          <p class="text-4">为商家提供一个公平、健康的经营环境</p>
      </div>
    </li>
    <li class="list-item item-cost shake shake-slow">
      <p class="item-number"><span>04</span></p>
      <p class="item-logo"><i class="logo_2"></i></p>
      <div class="item-text">
          <p class="title">宣传推广</p>
          <p class="t-eng">ZERO RISK AND LOW COST</p>
          <p class="line"></p>
          <p class="text-1">强大的媒体宣传</p>
          <p class="text-2">丰富的活动种类、线上线下同步推广</p>
          <p class="text-3">让您的品牌得到全方位的展示</p>
      </div>
    </li>
  </ul></div>

<!--整体流程-->
<div class="flow-box">
      <?php if(!empty($help_list) && is_array($help_list)){ $i = 0;?>
      <?php foreach($help_list as $key => $val){ $i++;?>
<?php if($i==1){?>
  <div class="settled-flow sb_floor"><div class="settled"> <div class="left"><i class="i_1"></i><p><?php echo $val['help_title'];?></p> <p class="eng">PROCESS</p><span class="span_1"></span></div>
       <?php }else if($i==2){?>
<div class="settled-stander sb_floor"><div class="stand"><div class="left"><i class="i_2"></i> <p><?php echo $val['help_title'];?></p><p class="eng">STANDARD</p><span class="span_2"></span> </div>
       <?php }else if($i==3){?>
<div class="settled-rules sb_floor"><div class="rule"><div class="left"> <i class="i_3"></i> <p><?php echo $val['help_title'];?></p><p class="eng">PROCESS</p> <span class="span_3"></span></div>
       <?php }else if($i==4){?>
<!-- <div class="settled-brands sb_floor"><div class="brand"><div class="left"><i class="i_4"></i><p>合作品牌</p><p class="eng">COOPERATIVE RULES</p><span class="span_4"></span> </div> -->
       <?php } ?>
        <div class="right"><?php echo html_entity_decode($val['help_info']);?></div></div></div>
       <?php } ?>
      <?php } ?></div>
</div>
<a class="back-top">
</a>
<div class="suspension-box">
  <div class="joinin-index-step suspension-step">
    <span class="step">
      <a href="javascript:;">
        入驻流程</a>
    </span>
    <span class="step">
      <a href="javascript:;">
      入驻标准</a>
    </span>
    <span class="step">
      <a href="javascript:;">
      公司资质要求</a>
    </span>
    <span class="step">
      <a href="javascript:;">
      品牌资质要求</a>
    </span>
    <span class="step">
      <a href="javascript:;">
      合作细则</a>
    </span>
    <!-- <span class="step">
      <a href="javascript:;">
      已合作品牌</a>
    </span> -->
    <div class="item-l2">
      <a href="<?php echo url('/shop/Storejoinin/step0');?>" class="login">
      立即入驻<i></i></a>
    </div>
  </div>
</div>


<?php if( $pic_n > 1) { ?>
<script type="text/javascript" src="__SHOP_RESOURCE__/js/home_index.js" charset="utf-8"></script>
<?php }else { ?>
<script>
$(document).ready(function(){
    $(".tabs-nav > li > h3").bind('mouseover', (function(e) {
    	if (e.target == this) {
    		var tabs = $(this).parent().parent().children("li");
    		var panels = $(this).parent().parent().parent().children(".tabs-panel");
    		var index = $.inArray(this, $(this).parent().parent().find("h3"));
    		if (panels.eq(index)[0]) {
    			tabs.removeClass("tabs-selected").eq(index).addClass("tabs-selected");
    			panels.addClass("tabs-hide").eq(index).removeClass("tabs-hide");
    		}
    	}
    }));
});
</script>
<?php } ?>
<script type="text/javascript" src="__SHOP_RESOURCE__/js/index_introduce.js" charset="utf-8"></script>

    <!-- layer 3.0 -->
    <script src="__PUBLIC__/static/plugs/layer/layer.js"></script>

    <!-- layui 2.0-->
    <link rel="stylesheet" href="__PUBLIC__/static/plugs/layui/css/layui.css">
    <script src="__PUBLIC__/static/plugs/layui/layui.js"></script>

    <!-- popup js -->
    <script language="javascript" src="__PUBLIC__/static/admin/js/popup.js" type="text/javascript"></script>

    <script>
        layui.use(['form'], function() {
            var form = layui.form;

            //自定义验证规则
            form.verify({
                username: function(value){
                    if(value == '可使用已注册的用户名或手机号登录' || value.length < 1){
                        return '登录账号不能为空';
                    }
                },
                password: function(value){
                    if(value == '6-20个大小写英文字母、符号或数字' || value.length < 1){
                        return '密码不能为空';
                    }
                },
                captcha: function(value){
                    if(value == '输入验证码'){
                        return '验证码不能为空';
                    }
                    if(value.length < 4){
                        return '验证码至少为4位';
                    }
                }
            });

            // ajax 提交
            form.on('submit(ajax_default_login)', function(data){
                data.field.login_type = 'username';
                $.post('/member/Login/index',data.field,function(res){

                    popup_jump(res, 1);
                });
                return false;
            });

        });
    </script>
{/block}

